package com.xinqi.modules.stats.score.mapper;

import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreContentSonEntity;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentSonClassDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreAllScoreResultDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreContentSonResultDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 总成绩课程子成绩项目配置表数据层
 *
 * @author: system
 * @date: 2023/03/26
 */
@Mapper
public interface CourseTotalScoreContentSonMapper extends SuperMapper<CourseTotalScoreContentSonEntity> {

    /*课程内容已发布列表*/
    List<CourseTotalScoreContentSonResultDTO> findReleaseCourseContent(CourseTotalScoreContentSonClassDTO dto);

    /*删除已选择的栏目内容根据类型*/
    boolean deleteCourseContentSon(CourseTotalScoreContentSonClassDTO dto);

    /*总成绩满分、最高分、最低分、平均分*/
    CourseTotalScoreAllScoreResultDTO findTotalScoreAllScoreInfo(Long classId);

}
